<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>百商汇</title>
	<meta name="viewport" content="initial-scale = 1.0,maximum-scale = 1.0,minimum-scale = 1.0,user-scalable = no,width = device-width">
	<meta name="format-detection" content="telephone=no" />
	<link rel="stylesheet" type="text/css" href="../csses/upPartner.css">
</head>
<body>
	<div class="upPartner_title">
		合伙人信息
		<img src="../image/back.png" onclick="goBack()">
	</div>
	<div class="upPartner_box">
		<ul>
			<li>
				<span>合伙人类别</span>
				<input type="text" readonly="true" class="input1"></input>
			</li>
			<li>
				<span>地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;区</span>
				<input type="text" readonly="true" class="input2"></input>
			</li>
			<li>
				<span>审 核 状 态</span>
				<input type="text" readonly="true" class="input3"></input>
			</li>
		</ul>
	</div>

	<a class="button" href="p.html">升级合伙人</a>

	<script type="text/javascript" src="../lib/flexible.js"></script>
	<script type="text/javascript" src="../lib/jquery-1.10.1.min.js"></script>
	<script type="text/javascript">
		onload = function () {
			if(sessionStorage.partnerLevel == '全国合伙人'){
				$('.button').removeAttr('href').css('background','#ccc');
			}
		}
		function goBack(){
			window.history.back();
		}

		$.ajax({
			type : 'post',
			url : '/api/v1/partner/check',
			data : {
				paramStr : "{'userName':'" + sessionStorage.userName + "','token':'" + sessionStorage.token + "'}"
			},
			dataType : 'json',
			timeout : 3000,
			success : function (data) {
				if(data.code == 200){
					var obj = JSON.parse(data.data);
					var partnerInfo = obj.partnerInfo;
					$('.input1').val(partnerInfo.levelName);
					$('.input2').val(partnerInfo.provinceName + ' ' + partnerInfo.cityName + ' ' + partnerInfo.areaName);
					$('.input3').val('审核通过');
					sessionStorage.provinceName1 = partnerInfo.provinceName;
					sessionStorage.cityName1 = partnerInfo.cityName;
					sessionStorage.areaName1 = partnerInfo.areaName;
				}
			},
			error : function (xhr,type,errorThrown) {
				// alert('111');
			}
		});
	</script>
</body>
</html>